package Mapper;

import entity.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FoodMapper {
    //根据输入的input(食物)搜索目标(食补)

    @Select("select * from food where foodname = #{input}")
    public List<Food> searchfoods(String input);


}
